package cn.snorlaxzjt.LBSserver.po.page;

import cn.snorlaxzjt.LBSserver.po.entity.Comment;
import java.util.List;
import java.math.BigDecimal;
import java.sql.Timestamp;

import lombok.Data;

@Data
public class MomentPage {
    private Long id;
    private BigDecimal longitude;
    private BigDecimal latitude;
    private Integer userId;
    private String username;
    private String landmark;
    private String avatar;
    private String address;
    private String content;
    private String imageUrl;
    private Long createTime;
    private List<CommentPage> commentList;

    public void setCreateTime(Timestamp createTime) {
        this.createTime = createTime.getTime();
    }

//    public void setAddress(Moment moment)
//    {
//        this.address = moment.getCity()+"-"+moment.getStreet();
//    }
}
